package cn.maxmc.murderaddons.machine

import cn.maxmc.murderaddons.machine.machines.ScannerMachine
import org.bukkit.configuration.serialization.ConfigurationSerialization
import java.util.*

object MachineManager {
    val machines = ArrayList<Class<out BaseMachine>>()

    init {
        println("正在加载配置.")
        machines.addAll(listOf(
            BaseMachine::class.java,
            ScannerMachine::class.java
        ))

        machines.forEach {
            ConfigurationSerialization.registerClass(it)
    }
    }

}